package com.dawn.system.sys.service;

import com.dawn.commons.service.BaseService;
import com.dawn.commons.web.model.AjaxResponse;
import com.dawn.system.sys.entity.User;

public interface UserService extends BaseService<User> {
	
	/**
	 * 用户登录验证
	 * @param account
	 * @param password
	 * @return
	 */
	public AjaxResponse loginValidate(String account, String password) ;

	/**
	 * 找回密码
	 * @param dto
	 * @return
	 */
	public AjaxResponse iForgotPwd(User dto) ;
	
	/**
	 * 检查密码找回连接是否正确
	 * @param sid
	 * @param account
	 * @return
	 */
	public AjaxResponse checkResetLink(String sid, String account) ;
	
	/**
	 * 修改密码
	 * @param dto(id, account, validateCode, password)
	 * @return
	 */
	public AjaxResponse changePwd(User dto) ;
	
}
